import GlobalPopup from '@/components/global-popup/global-popup'
import Alert from '@/components/global-popup/components/alert'
import Confirm from '@/components/global-popup/components/confirm'

const install = (Vue) => {
  const usePopups = [
    { name: 'Alert', component: Alert },
    { name: 'Confirm', component: Confirm }
  ]
  Vue.prototype.$popup = new GlobalPopup(usePopups)
}

export default {
  install
}
